<?php
/**
* @version   $Id: index.php 1434 2012-07-01 15:16:12Z james $
* @author    RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2012 RocketTheme, LLC
* @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*
* Gantry uses the Joomla Framework (http://www.joomla.org), a GNU/GPLv2 content management system
*
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted index access' );

// load and inititialize gantry class
require_once('lib/gantry/gantry.php');
$gantry->init();

function isBrowserCapable(){
	global $gantry;

	$browser = $gantry->browser;

	// ie.
	if ($browser->name == 'ie' && $browser->version < 8) return false;

	return true;
}
// get the current preset
$gpreset = str_replace(' ','',strtolower($gantry->get('name')));

/* EDAZCOMMERCE	 */
$currentUrl = $gantry->getCurrentUrl();
if(isset($currentUrl) && $currentUrl != ''){
	$posIni    = strrpos($currentUrl, '/');
	$pageAtual = substr($currentUrl, $posIni+1, strlen($currentUrl));
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $gantry->language; ?>" lang="<?php echo $gantry->language;?>" >
<head>
	<?php
		$gantry->displayHead();
		$gantry->addStyles(array('template.css'));
		$gantry->addScript('jquery-1.7.1.js');
		$gantry->addScript('jquery.maskedinput-1.1.4.pack.js');
		$gantry->addScript('edazcommerce.js');

		if ($gantry->browser->platform != 'iphone')
			$gantry->addInlineScript('window.addEvent("domready", function(){ new SmoothScroll(); });');

		if ($gantry->get('loadtransition') && isBrowserCapable()){
			$gantry->addScript('load-transition.js');
			$hidden = ' class="rt-hidden"';
		} else {
			$hidden = '';
		}
	?>
	
	<!-- SLIDER TEXT-->
	<link rel="stylesheet" href="<?=JURI::base();?>/templates/rt_ximenia/css/nivoSlider/default.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="<?=JURI::base();?>/templates/rt_ximenia/css/nivoSlider/nivo-slider.css" type="text/css" media="screen" />
	<script type="text/javascript" src="<?=JURI::base();?>/templates/rt_ximenia/js/nivoSlider/jquery.nivo.slider.js"></script>
	
	<script>
		var urlWebsite = '<?=JURI::base();?>';
	</script>
</head>
	<body <?php echo $gantry->displayBodyTag(); ?>>
		<!-- DIV CONTATO HEADER -->
		<div class="wrapperContatoHeader">
			<div class="contatoHeader">
				<div class="clearLeft">
					<div class="floatLeft" style="margin: -3px  5px 0 0;"><img src="images/rocketlauncher/frontpage/general/fp-footer-icon1.png"></div>
					<div class="floatLeft">+55 13 3326-2366 / +55 13 3327-2366</div>
				</div>
				<div class="clearLeft floatLeft" style="margin-top: -9px;">
					<div class="floatLeft" style="margin-right: 5px;"><img src="images/rocketlauncher/frontpage/general/fp-footer-icon3.png"></div>
					<div class="floatLeft">info@estreladomarlogistica.com.br</div>
				</div>
			</div>
		</div>
		
		<div id="rt-headerblock">
			<?php /** Begin Top **/ if ($gantry->countModules('top')) : ?>
			<div id="rt-top" class="block-module">
				<div class="rt-container">
					<?php echo $gantry->displayModules('top','standard','standard'); ?>
					<div class="clear"></div>
				</div>
			</div>
			<?php /** End Top **/ endif; ?>
			<?php /** Begin Header **/ if ($gantry->countModules('header')) : ?>
			<div id="rt-header">
				<div class="rt-container">
					<?php echo $gantry->displayModules('header','standard','standard'); ?>
					<div class="clear"></div>
				</div>
			</div>
			<?php /** End Header **/ endif; ?>
			<?php /** Begin Navigation **/ if ($gantry->countModules('navigation')) : ?>
			<div id="rt-navigation">
				<div class="rt-container">
					<?php echo $gantry->displayModules('navigation','standard','standard'); ?>
					<div class="clear"></div>
				</div>
			</div>
			<?php /** End Navigation **/ endif; ?>
		</div>
		
		<?php /** Begin Showcase **/ if ($gantry->countModules('showcase')) : ?>
		<div id="rt-showcase">
			<div class="rt-container">
				<?php echo $gantry->displayModules('showcase','standard','standard'); ?>
				<div class="clear"></div>
			</div>
		</div>
		<?php /** End Showcase **/ endif; ?>
		
		<div class="divBordaCentro">
			<div class="divCentro">
				<?php /** Begin Drawer **/ if ($gantry->countModules('drawer')) : ?>
				<div id="rt-drawer">
					<div class="rt-container">
						<?php echo $gantry->displayModules('drawer','standard','standard'); ?>
						<div class="clear"></div>
					</div>
				</div>
				<?php /** End Drawer **/ endif; ?>
			
				<?php /** Begin Sub Navigation **/ if ($gantry->countModules('subnavigation')) : ?>
				<div id="rt-subnavigation">
					<div class="rt-container">
						<?php echo $gantry->displayModules('subnavigation','standard','menu'); ?>
						<div class="clear"></div>
					</div>
				</div>
				<?php /** End Sub Navigation **/ endif; ?>
				<div id="rt-transition"<?php echo $hidden; ?>>
					<!-- Showcase aqui! -->
					
					<?php /** Begin Feature **/ if ($gantry->countModules('feature')) : ?>
					<div id="rt-feature" class="block-module">
						<div class="rt-container">
							<?php echo $gantry->displayModules('feature','standard','standard'); ?>
							<div class="clear"></div>
						</div>
					</div>
					<?php /** End Feature **/ endif; ?>
					<?php /** Begin Utility **/ if ($gantry->countModules('utility')) : ?>
					<div id="rt-utility" class="block-module">
						<div class="rt-container">
							<?php echo $gantry->displayModules('utility','standard','standard'); ?>
							<div class="clear"></div>
						</div>
					</div>
					<?php /** End Utility **/ endif; ?>
					<?php /** Begin Main Top **/ if ($gantry->countModules('maintop')) : ?>
					<div id="rt-maintop" class="block-module">
						<div class="rt-container">
							<?php echo $gantry->displayModules('maintop','standard','standard'); ?>
							
							<?
							/* EDAZCOMMERCE - GOOGLE MAPS - FALE CONOSCO */
							if($pageAtual == 'fale-conosco'):
							?>
							<div class="googleMapsDiv">
								<div class="mapa_fale_conosco"></div>
								<? /*<iframe width="530" height="500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com.br/maps?f=q&amp;source=s_q&amp;hl=pt-BR&amp;geocode=&amp;q=Rua+Visconde+do+Rio+Branco,+12,+Santos+-+S%C3%A3o+Paulo&amp;aq=t&amp;sll=-23.933126,-46.323959&amp;sspn=0.001385,0.002057&amp;ie=UTF8&amp;hq=&amp;hnear=R.+Visc.+do+Rio+Branco,+12+-+Centro,+Santos+-+S%C3%A3o+Paulo,+11013-030&amp;ll=-23.931048,-46.324869&amp;spn=0.011003,0.016458&amp;t=m&amp;z=16&amp;output=embed"></iframe> */ ?>
							</div>
							<? endif; ?>
							
							<div class="clear"></div>
						</div>
					</div>
					<?php /** End Main Top **/ endif; ?>
					<?php /** Begin Breadcrumbs **/ if ($gantry->countModules('breadcrumb')) : ?>
					<div id="rt-breadcrumbs">
						<div class="rt-container">
							<?php echo $gantry->displayModules('breadcrumb','basic','breadcrumbs'); ?>
							<div class="clear"></div>
						</div>
					</div>
					<?php /** End Breadcrumbs **/ endif; ?>
					<?php /** Begin Main Body **/ ?>
				    <?php echo $gantry->displayMainbody('mainbody','sidebar','standard','standard','standard','standard','standard'); ?>
					<?php /** End Main Body **/ ?>
					<?php /** Begin Main Bottom **/ if ($gantry->countModules('mainbottom')) : ?>
					<div id="rt-mainbottom" class="block-module">
						<div class="rt-container">
							<?php echo $gantry->displayModules('mainbottom','standard','standard'); ?>
							<div class="clear"></div>
						</div>
					</div>
					<?php /** End Main Bottom **/ endif; ?>
					<?php /** Begin Extension **/ if ($gantry->countModules('extension')) : ?>
					<div id="rt-extension" class="block-module">
						<div class="rt-container">
							<?php echo $gantry->displayModules('extension','standard','standard'); ?>
							<div class="clear"></div>
						</div>
					</div>
					<?php /** End Extension **/ endif; ?>
				</div>
				<?php /** Begin Bottom **/ if ($gantry->countModules('bottom')) : ?>
				<div id="rt-bottom" class="block-module">
					<div class="rt-container">
						<?php echo $gantry->displayModules('bottom','standard','standard'); ?>
						<div class="clear"></div>
					</div>
				</div>
				<?php /** End Bottom **/ endif; ?>
				
			</div>
		</div>
		
		<?php /** Begin Footer **/ if ($gantry->countModules('footer')) : ?>
		<div id="rt-footer">
			<div class="rt-container">
				<?php echo $gantry->displayModules('footer','standard','standard'); ?>
				<div class="clear"></div>
			</div>
		</div>
		<?php /** End Footer **/ endif; ?>
		<?php /** Begin Copyright **/ if ($gantry->countModules('copyright')) : ?>
		<div id="rt-copyright">
			<div class="rt-container">
				<?php echo $gantry->displayModules('copyright','standard','standard'); ?>
				<div class="clear"></div>
			</div>
		</div>
		<?php /** End Copyright **/ endif; ?>
		<?php /** Begin Debug **/ if ($gantry->countModules('debug')) : ?>
		<div id="rt-debug">
			<div class="rt-container">
				<?php echo $gantry->displayModules('debug','standard','standard'); ?>
				<div class="clear"></div>
			</div>
		</div>
		<?php /** End Debug **/ endif; ?>
		<?php /** Begin Popups **/
		echo $gantry->displayModules('popup','popup','popup');
		echo $gantry->displayModules('login','login','popup');
		/** End Popup s**/ ?>
		<?php /** Begin Analytics **/ if ($gantry->countModules('analytics')) : ?>
		<?php echo $gantry->displayModules('analytics','basic','basic'); ?>
		<?php /** End Analytics **/ endif; ?>
	</body>
</html>
<?php
$gantry->finalize();
?>

<script>
	jQ(window).load(function() {
		//if(activePage == 'home'){
			jQ('#wrapper').fadeIn(1000, function(){
				jQ('#slider').nivoSlider();
			});
		//}
	});
</script>
